﻿using System;
using System.Collections.Generic;
using Transfer.Utils;

namespace QuickModel.ColumnTransModel
{
	internal class ColumnConfigInfoEqualityComparer : IEqualityComparer<ColumnConfigInfo>
	{
		public bool Equals(ColumnConfigInfo x, ColumnConfigInfo y)
		{
			bool flag = x.ThisColumnCategory == EColumnCategory.eStrange && y.ThisColumnCategory == EColumnCategory.eStrange;
			bool result;
			if (flag)
			{
				result = false;
			}
			else
			{
				bool flag2 = x.ThisColumnCategory == y.ThisColumnCategory && Geometry.IsEqual((double)((int)x.Length), (double)((int)y.Length)) && Geometry.IsEqual((double)((int)x.Width), (double)((int)y.Width)) && Geometry.IsEqual((double)((int)x.Diameter), (double)((int)y.Diameter));
				result = flag2;
			}
			return result;
		}

		public int GetHashCode(ColumnConfigInfo obj)
		{
			return 0;
		}
	}
}
